package com.quanyan.club.mapper;

import com.quanyan.club.entity.vo.resp.RespClubMemberCardInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by yue.yuan on 2016/9/26.
 */
public interface ClubMemberMapper {

    List<Integer> selectMemberIdByClub(Integer clubId);

    List<Integer> selectClubIdByUid(Integer uid);

    List<Integer> selectClubAdminsByClubId(Integer clubId);

    Integer countByBeforeTimeExample(Integer clubId);

    List<RespClubMemberCardInfo> queryClubMemberSortList(@Param("clubId") int clubId, @Param("sortBy") int sortBy, @Param("start") int start, @Param("pageSize") int pageSize);

    Integer countClubMemberSortList(@Param("clubId") int clubId);

    Integer countMemberJionClubActivityCount(@Param("clubId") int clubId, @Param("uid") int uid);

    void updateClubMemberQuitCount(@Param("clubId") int clubId, @Param("uid") int uid);
}
